.fen-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

/* 头部导航栏样式 */
.header-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.custom-navbar {
  --height: 44px;
  --border-bottom: none;
  --background-color: #fff;
  --title-font-size: 16px;
  --title-font-weight: 600;
  --title-color: #333;
}

.custom-navbar :global(.adm-nav-bar-back-arrow) {
  font-size: 18px;
  color: #333;
}

.custom-navbar :global(.adm-nav-bar-title) {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.tabs-container {
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 10;
}

.custom-tabs {
  --active-title-color: #1677ff;
  --active-line-color: #1677ff;
  --active-line-height: 3px;
}

.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: calc(100vh - 88px); /* 减去头部导航栏和标签页的高度 */
}

.sidebar-container {
  width: 120px;
  background-color: #fff;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
}

.content-container {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.content-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.content-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.disease-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.disease-item {
  background-color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #333;
  border: 1px solid #e8e8e8;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.disease-item:hover {
  border-color: #1677ff;
  color: #1677ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.15);
}

.disease-item:active {
  transform: translateY(0);
}

/* 药品网格样式 */
.drug-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.drug-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid #e8e8e8;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.drug-item:hover {
  border-color: #1677ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.15);
}

.drug-item:active {
  transform: translateY(0);
}

.drug-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.drug-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drug-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

/* 加载状态样式 */
.loading-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.loading-text {
  font-size: 16px;
  color: #666;
}

/* 空数据状态样式 */
.empty-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px dashed #d9d9d9;
}

.empty-text {
  font-size: 14px;
  color: #999;
}

/* 自定义 SideBar 样式 */
:global(.adm-side-bar) {
  width: 100%;
}

:global(.adm-side-bar-item) {
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  cursor: pointer;
}

:global(.adm-side-bar-item:hover) {
  background-color: #f5f5f5;
}

:global(.adm-side-bar-item--active) {
  background-color: #e6f4ff;
  border-left: 3px solid #1677ff;
  color: #1677ff;
}

:global(.adm-side-bar-item--active .adm-side-bar-item-title) {
  color: #1677ff;
  font-weight: 500;
}

:global(.adm-side-bar-item-title) {
  font-size: 14px;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar-container {
    width: 100px;
  }
  
  .disease-grid {
    grid-template-columns: 1fr;
  }
  
  .content-container {
    padding: 12px;
  }
  
  .content-title {
    font-size: 16px;
  }
}
